// 配置路由
import { RouteRecordRaw } from "vue-router";

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: "Login",
    component: () => import('@/views/Login/index.vue'),
  },
  {
    path: '/home',
    name: "Home",
    component: () => import('@/views/Home/index.vue'),
  },
  // {
  //   path: '/login',
  //   component: () => import('@/layout/index.vue'),
  //   children: [
  //     {
  //       path: '/redirect/:path(.*)',
  //       component: () => import('@/views/redirect/index.vue')
  //     }
  //   ]
  // },
];
